package com.msb.api.feign.coupon;

import com.msb.common.vo.CommonResult;
import com.msb.mall.core.dto.SkuReductionDTO;
import com.msb.mall.core.dto.SpuBoundsDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(
        name = "mall-coupon", path = "/mall-coupon"
)
public interface CouponFeginService {

    @PostMapping("/coupon/skufullreduction/saveinfo")
    CommonResult saveFullReductionInfo(@RequestBody SkuReductionDTO dto);


    @RequestMapping("/coupon/spubounds/saveSpuBounds")
    //@RequiresPermissions("coupon:spubounds:save")
    CommonResult saveSpuBounds(@RequestBody SpuBoundsDTO spuBounds);
}
